/*
package com.kongjs.application;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.generator.FastAutoGenerator;
import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine;
import org.postgresql.Driver;

import java.nio.file.Paths;

public class MybatisPlusCodeGenerator {
    public static void main(String[] args) {

        FastAutoGenerator.create("jdbc:mysql://kongjs.com:3306/wordpress", "root", "Ta3cQCNF7PnGvzUQHCzc8UjEnbxFkUxf")
                .globalConfig(builder -> builder
                        .author("kongjs.com")
                        .outputDir(Paths.get("C:\\Users\\kongd\\IdeaProjects\\scp-cms\\application\\cms-content") + "/src/main/java")
                        .commentDate("yyyy-MM-dd")
                )
                .packageConfig(builder -> builder
                        .parent("com.kongjs.application")
                        .controller("controller.rest")
                        .entity("model.entity")
                        .mapper("mapper")
                        .service("service")
                        .serviceImpl("service.impl")
                        .xml("mapper.xml")
                )
                .strategyConfig(builder -> builder
                        .entityBuilder()
                        .enableLombok()
                        .enableSerialAnnotation()
                        .enableTableFieldAnnotation()
                        .idType(IdType.ASSIGN_ID)
                        .enableRemoveIsPrefix()
                        .build()
                )
                .templateEngine(new FreemarkerTemplateEngine())
                .execute();
    }
}
*/
